﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPrincipal.master" AutoEventWireup="true"
    CodeFile="CadastrarQuesitoAE.aspx.cs" Inherits="Quesito_CadastrarQuesitoAE" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../scripts/tiny_mce/themes/simple/skins/default/ui.css" rel="stylesheet"
        type="text/css" />
    <script src="../scripts/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script src="../scripts/fswgrid-0.2.js" type="text/javascript"></script>
    <script src="../scripts/json2.js" type="text/javascript"></script>
    <link href="../Css/geral.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function voltar()
        {
            window.location = "DefaultAE.aspx";
        };
        var url = window.location;
        function cadastrarQuesito() {
            $.ajax({
                type: "POST",
                url: "CadastrarQuesitoAE.aspx/cadastrarQuesito",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                data: JSON.stringify({ titulo: $('#textBoxtitulo').val(), descricao: $('#textBoxDescricao').val(), notaInicial: $('#textBoxNotaInicial').val(), notaFinal: $('#textBoxNotaFinal').val()}),
                success:
                    function (msg) {
                        $('#textBoxtitulo').val("");
                        $('#textBoxDescricao').val("");
                        $('#textBoxNotaInicial').val("");
                        $('#textBoxNotaFinal').val("");
                        window.location = "DefaultAE.aspx";
                    },
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderConteudo" runat="Server">
    <div style="text-align: right; padding-right: 40px">
        <a href="javascript:voltar()" id="buttonVoltar" class="buttonAcao">&laquo; Voltar</a>
    </div>
    <br />
    <br />
    <br />
    <div>
        <div style="text-align: left">
            <asp:Label runat="server" ID="LabelQuesitos" Font-Bold="true" Text="Novo Quesito"
                Font-Size="30px"></asp:Label>
        </div>
    </div>
    <br />
    <br />
    <table>
        <tr>
            <td>
                Título:
            </td>
            <td style="width: 70%">
                <input id="textBoxtitulo" type="text" />
            </td>
        </tr>
        <tr>
            <td>
                Descrição:
            </td>
            <td style="width: 70%">
                <textarea id="textBoxDescricao"></textarea>
            </td>
        </tr>
        <tr>
            <td>
                Nota Inicial:
            </td>
            <td style="width: 70%">
                <input id="textBoxNotaInicial" type="text" style="width:17px" />
            </td>
        </tr>
        <tr>
            <td>
                Nota Final:
            </td>
            <td style="width: 70%">
                <input id="textBoxNotaFinal" type="text" style="width:17px"  />
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <a class="buttonAcao" href="javascript:cadastrarQuesito();">Salvar</a>
</asp:Content>
